package com.mychart.service;

import com.mychart.entity.dto.UserDTO;
import com.mychart.entity.dto.UserFriendDTO;
import com.mychart.entity.mongo.ChartRecord;
import com.mychart.entity.po.ChartUserPO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author czh
 * @since 2023-10-16
 */
public interface IChartUserService extends IService<ChartUserPO> {

    List<ChartUserPO> findUsersByName(String name);

    void addFriend(UserFriendDTO userFriendDTO);

    List<UserDTO> getFriendApplyList(String userName);

    void confirmNewFriendApply(UserFriendDTO userFriendDTO);

    List<UserDTO> getFriends(String userName);

    List<ChartRecord> getChartRecord(UserFriendDTO userFriendDTO);
}
